home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
graphics
/
pcx2pcl.zip
/
READ.ME
< prev
Wrap
Text File
|
1993-01-20
|
12KB
|
156 lines
&k2S&l8D
╔═══════════════════════════════════════════════════════════════════════════╗
║ ║
║ We know you'll love this program, enjoy. ║
║ ═════════════════════════════════════════════════════════════════════════ ║
║ ║
║ Convert PCX to PCL with --"PCX2PCL" ║
║ ║
║ Using PCX2PCL.EXE ║
║ ║
║ This program allows you to print PCX image files directly ║
║ to the laser printer or anywhere from within your application. ║
║ ║
║ To print a PCX image within your application: ║
║ Read and print the file, using file handling functions. ║
║ (depending on the language you use) ║
║ See programming examples for 'C ' and Clipper below. ║
║ ║
║ Convert the PCX image into a PCL file, and print the PCX ║
║ image to the printer using DOS commands or any other operating system ║
║ command to transfer the file to the printer. ║
║ ║
║ COPY <pclfile.pcl> LPT1 /B ║
║ ║
║ You may also use this file within a PJL file. ║
║ ║
║ Running options for PCX2PCL.EXE ║
║ ║
║ PCX2PCL <pcxfile> [pclfile] [switches] ║
║ ║
║ Default output is LPT1, if you do not specify <pclfile> ║
║ ║
║ Switches are as follows : ║
║ /i causes the program to invert the image. ║
║ /rxxx results in xxx DPI resolution output. ║
║ ║
║ Valid resolutions are 75 (the printer default),100, ║
║ 150,and 300.(200 and 600 are valid for 600 DPI ║
║ printers.) If you do not use this switch, you will have ║
║ to set the resolution before sending the file to the ║
║ printer, otherwise the image will be printed in the ║
║ default 75 DPI. ║
║ ║
║ Skipping this switch gives you the flexibility to ║
║ select the resolution and control the size of image ║
║ printed. ( the next release of this program will let ║
║ you change the scale of the image as you wish.) ║
║ ║
║ The code to set the raster resolution for the image is ║
║ <esc>*t#R ║
║ where # represents a valid resolution value. ║
║ This code must be send to the printer just before the ║
║ image file. The image is printed at the current CAP ║
║ (cursor position). ║
║ ║
║ Programmers using ProHP - Laser printer Library, have ║
║ functions to control and position Image files within ║
║ their applications. A great supplement to the existing ║
║ control ProHP gives to the HP LaserJet family. For ║
║ ProHP info call 1 (800) 374-7734, or [70712,3072] ║
║ ║
║ To receive the next version of PCX2PCL, which will have ║
║ scaling and pattern options, please send your name and ║
║ address with $5.00 ( USA 50 states or $15.- elsewhere) ║
║ to cover shipping costs to : ║
║ ═════════════════════════════════════════════════════════════════════════ ║
║ I.L.A., Inc. ║
║ 520 W. Hwy 436 #1180 ║
║ Altamonte Springs, FL 32714 ║
║ Tel. (407) 774-7734 , (800) 374-7734 ║
║ Fax. (407) 774-6750 ║
║ ║
║ Please tell us what languages you program in, and where ║
║ you got a copy of PCX2PCL. Thanks. ║
║ Comments and suggestions are welcome. ║
║ ║
║ ═════════════════════════════════════════════════════════════════════════ ║
║ ║
║ 'C' Example : ║
║ ║
║ void printPCX(FILE *pclf, FILE * outf) ║
║ { ║
║ char ch; ║
║ int f_in,f_out; ║
║ ║
║ if( (f_in = fopen( pclf, "rb" )) == NULL ) ║
║ exit(1); ║
║ if( (f_out = fopen( outf, "wb" )) == NULL ) ║
║ exit(1); ║
║ iobinary(f_out); // raw mode ║
║ while (( ch = fgetc(f_in))) != EOF ) ║
║ fputc(ch,f_out); ║
║ fclose(f_in); ║
║ fclose(f_out); ║
║ } ║
║ ║
║ ║
║ Clipper Example: ║
║ ║
║ #define BUFFSIZE 1024 ║
║ ║
║ Proc printPCX(cPcl, cLpt) ║
║ Local f_in, f_out, ch, nBytesR ║
║ Local cBuff:= space(BUFFSIZE) ║
║ ║
║ f_in := fopen( cPcl , FO_READ) ║
║ f_out := fopen(cLpt, FO_READWRITE ) ║
║ iobinary(f_out) // set binary mode available in ProHP Library. ║
║ ║
║ nBytesR := fread(f_in, @cBuff, BUFFSIZE) ║
║ while (nBytesR == BUFFSIZE) ║
║ fwrite(f_out,cBuff) ║
║ nBytesR := fread(f_in, @cBuff, BUFFSIZE) ║
║ enddo ║
║ fwrite(f_out,left(cBuff,nBytesR) ║
║ ║
║ fclose(f_in) ║
║ ioascii(f_out) ║
║ fclose(f_out) ║
║ ║
║ return ║
║ ║
╚═══════════════════════════════════════════════════════════════════════════╝
╔═══════════════════════════════════════════════════════════════════════════╗
║ ║
║ PCX2PCL is copyrighted, and all rights are reserved. It is being ║
║ released for demonstration. It may be tested, copied, uploaded to ║
║ public access bulletin boards, and distributed in any manner ║
║ where the recipient pays for no more than the cost of the ║
║ distribution. All original files must be included. ║
║ ║
║ There are no royalties due for any programs using PCX2PCL. ║
║ ║
║ DISTRIBUTION ║
║ ║
║ Bulletin boards and non-profit user groups may include PCX2PCL in ║
║ their libraries. PCX2PCL may be copied or posted for downloading ║
║ for the trial use by others subject to the following conditions: ║
║ ║
║ 1. All files must be distributed together in original, ║
║ unmodified form as ORIGINALLY NAMED. ║
║ ║
║ 2. No files may be added to the package or archive. ║
║ ║
║ ║
║ -------------------------------------------------------------------- ║
║ * ProHP is a trade mark of I.L.A., Inc. ║
║ * CLIPPER is a trade mark of Computer Associates. ║
║ -------------------------------------------------------------------- ║
║ ║
╚═══════════════════════════════════════════════════════════════════════════╝
- End of READ.ME -